<!DOCTYPE html>
<html lang="zh-cmn-Hans">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="generator" content="http://apidoc.tools" />
        <title>index&#160;&#8250;&#160;api 示例文档</title>
        <link rel="stylesheet" href="./style.css" />
        <link href="https://cdn.bootcss.com/prism/1.5.1/themes/prism.min.css" rel="stylesheet" />

        <script src="./jquery-3.0.0.min.js"></script>
        <script src="https://cdn.bootcss.com/prism/1.5.1/prism.min.js" data-manual></script>
        <script src="https://cdn.bootcss.com/prism/1.5.1/plugins/autoloader/prism-autoloader.min.js"></script>
        <script src="./app.js"></script>
    </head>
    <body>
        <header>
            <div class="left">
                <h1>
                    <a href="./index.html">api 示例文档</a><span class="version">2.13.4&#43;20160704</span>
                </h1>

                <select id="groups"><option selected="selected" value="index.html">index</option>
                    
                </select>
            </div>

            <div class="filter">
                <label><input type="checkbox" checked="checked" value="get">GET</label>
                <label><input type="checkbox" checked="checked" value="post">POST</label>
                <label><input type="checkbox" checked="checked" value="put">PUT</label>
                <label><input type="checkbox" checked="checked" value="patch">PATCH</label>
                <label><input type="checkbox" checked="checked" value="delete">DELETE</label>
                <label><input type="checkbox" checked="checked" value="options">OPTIONS</label>
            </div>
        </header>
        <div class="main"><article>
        <br /><br /> 这是一份 apidoc 示例文档，对应的源码在 <a href="https://github.com/caixw/apidoc/tree/gh-pages/example/src">src</a> 目录下。<br /><br /><br /> OPTIONS:<br /><br /> 所有的 API 均支持 OPTIONS 请求方法。该方法通过报头的 Allow 返回。<br /><br /> 错误:<br /> ...<br />
    </article><section class="api">
    <h3>
        <span class="method delete">delete</span>
        <span class="url">/login</span>
        <span class="summary">注销用户</span>
    </h3>

    <div class="content">
        

        

        

        
        <div class="request">
            <h4>请求:&#160;json</h4>
            <div>
                
                    <h5>报头:</h5>
                    <table>
    <thead>
        <tr><th>名称</th><th>描述</th></tr>
    </thead>
    <tbody>
    <tr>
        <th>Authorization</th>
        <td>当前登录用户的 token</td>
    </tr>
    </tbody>
</table>
                

                

                
            </div>
        </div>
        

        
        <div class="response success">
            <h4><span class="success">SUCCESS:</span>204,&#160;注销成功</h4>
            
        </div>
        

        
    </div>
</section><section class="api">
    <h3>
        <span class="method post">post</span>
        <span class="url">/login</span>
        <span class="summary">用户登录</span>
    </h3>

    <div class="content">
        

        

        

        
        <div class="request">
            <h4>请求:&#160;json</h4>
            <div>
                

                
                    <h5>参数:</h5>
                    <table class="params">
    <thead>
        <tr><th>名称</th><th>类型</th><th>描述</th></tr>
    </thead>
    <tbody>
    <tr>
        <th>username</th>
        <td>string</td>
        <td>用户名</td>
    </tr><tr>
        <th>password</th>
        <td>string</td>
        <td>密码</td>
    </tr>
    </tbody>
</table>
                

                
                    <h5>示例:</h5>
                    
<pre><code class="language-json">{
     &#34;username&#34;: &#34;admin&#34;,
     &#34;password&#34;: &#34;123456&#34;
 }</code></pre>

                
            </div>
        </div>
        

        
        <div class="response success">
            <h4><span class="success">SUCCESS:</span>201,&#160;成功登录</h4>
            <h5>参数:</h5>
            <table class="params">
    <thead>
        <tr><th>名称</th><th>类型</th><th>描述</th></tr>
    </thead>
    <tbody>
    <tr>
        <th>expries</th>
        <td>int</td>
        <td>过期的时间，单位秒</td>
    </tr><tr>
        <th>token</th>
        <td>string</td>
        <td>存储 token</td>
    </tr>
    </tbody>
</table>
        </div>
        

        
        <div class="response error">
            <h4><span class="error">ERROR:</span>401,&#160;账号密码验证错误</h4>
            
        </div>
        
    </div>
</section>
    </div>
        <footer>
            <p>
                内容由 <a href="http://apidoc.tools">apidoc</a> 编译于 <time>2017-07-12T19:34:29&#43;08:00</time>，
                用时2.921738ms。
            </p>

            
            <p>
                内容采用
                <a href="https://opensources.org/licenses/MIT">MIT</a>
                进行许可。
            </p>
            
        </footer>
    </body>
</html>